using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
using AYE.BaseFramework.Manager;
using Prism.Commands;

namespace AYE_ClientSideAvalonia.ViewModels;

public class WindowTestViewModel : ViewModelBase
{

    public DelegateCommand TestCommand => new(() =>
    {
        IsPaneOpen = !IsPaneOpen;
    });

    public WindowTestViewModel()
    {
        
        Title = "Prism.Avalonia - 你好！！！";
        MyTitle = "huaghuanye  nihao";
    }

    private string? _myTitle;
    public string? MyTitle { get => _myTitle; set => SetProperty(ref _myTitle, value); }

    private bool _isPaneOpen;
    public bool IsPaneOpen { get => _isPaneOpen; set => SetProperty(ref _isPaneOpen, value); }

}
